home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Archive Magazine CD 1995
/
Archive Magazine CD 1995.iso
/
discs
/
shareware
/
share_41
/
assembler
/
!Assemble
/
error
< prev
next >
Wrap
Text File
|
1991-06-20
|
4KB
|
71 lines
0000BDB0 OPT pass%
0000BDB0
0000BDB0 ; r1 stores the address of number 1
0000BDB0 ; r2 stores the address of number 2
0000BDB0 ; r3 stores the address of number 3
0000BDB0 ; r4 stores the address of text 1
0000BDB0 ; r5 stores the address of text 2
0000BDB0
0000BDB0 ; *****************************************
0000BDB0 ; place your code here do not change the lines above
0000BDB0
0000BDB0 ; NAME clock
0000BDB0 ; PURPOSE displays the real time clock
0000BDB0 ; DESIGN
0000BDB0 ; set up registers
0000BDB0 ; call operating system command
0000BDB0 ;
0000BDB0 ;
0000BDB0 ; COMMENTS uses OS_Word, an operating system call
0000BDB0 ; this takes the following parameters
0000BDB0 ; r0 = 14 this is the reason code since OS_Word
0000BDB0 ; performs several tasks
0000BDB0 ; r1 points to an area of memory into which
0000BDB0 ; the time will be placed
0000BDB0 ; [r1] = 0 this is the second parameter, zero means
0000BDB0 ; read the clock
0000BDB0
0000BDB0 E3A0000E mov r0, #14
0000BDB4 E1A01004 mov r1, r4
0000BDB8 E3A06000 mov r6, #0
0000BDBC E5816000 str r6, [r1]
0000BDC0 EF000007 swi "OS_Word"
0000BDC4
0000BDC4
0000BDC4 E1A0F00E MOV R15, R14
ÿ0000BDB0 OPT pass%
0000BDB0
0000BDB0 ; r1 stores the address of number 1
0000BDB0 ; r2 stores the address of number 2
0000BDB0 ; r3 stores the address of number 3
0000BDB0 ; r4 stores the address of text 1
0000BDB0 ; r5 stores the address of text 2
0000BDB0
0000BDB0 ; *****************************************
0000BDB0 ; place your code here do not change the lines above
0000BDB0
0000BDB0 ; NAME clock
0000BDB0 ; PURPOSE displays the real time clock
0000BDB0 ; DESIGN
0000BDB0 ; set up registers
0000BDB0 ; call operating system command
0000BDB0 ;
0000BDB0 ;
0000BDB0 ; COMMENTS uses OS_Word, an operating system call
0000BDB0 ; this takes the following parameters
0000BDB0 ; r0 = 14 this is the reason code since OS_Word
0000BDB0 ; performs several tasks
0000BDB0 ; r1 points to an area of memory into which
0000BDB0 ; the time will be placed
0000BDB0 ; [r1] = 0 this is the second parameter, zero means
0000BDB0 ; read the clock
0000BDB0
0000BDB0 E3A0000E mov r0, #14
0000BDB4 E1A01004 mov r1, r4
0000BDB8 E3A06000 mov r6, #0
0000BDBC E5816000 str r6, [r1]
0000BDC0 EF000007 swi "OS_Word"
0000BDC4
0000BDC4
0000BDC4 E1A0F00E MOV R15, R14
ÿ